package com.epam.tcs.actions.pages;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.epam.tcs.dao.factory.DAOFactory;

abstract public class PageAbstract implements Page{
	
	protected DAOFactory dao = DAOFactory.getDaoFactory();
	
	public void outputPage(String aJSPName, HttpServletRequest aRequest,
			HttpServletResponse aResponse) throws IOException, ServletException {

		RequestDispatcher dispatcher = aRequest.getRequestDispatcher("/jsp/"
				+ aJSPName);
		dispatcher.forward(aRequest, aResponse);
	}
}
